package com.demo.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("cloudalibaba-config-service")
public interface StockFeignClient {
    @GetMapping("/stock/test")
     String test(@RequestParam("info") String info);

    @RequestMapping(path = "/deduct")
     Boolean deduct(@RequestParam("commodityCode")String commodityCode,@RequestParam("count") Integer count);
}
